// 表单模式
export const MODE = {
  EDIT: 'edit', // 编辑模式
  DISABLED: 'disabled', // 禁用模式
  READONLY: 'readonly', // 只读模式
}

// 表单布局类型
export const LAYOUT = {
  VERTICAL: 'vertical', // 单列垂直布局
  HORIZONAL: 'horizonal', // 单列水平布局
  INLINE: 'inline', // 行内布局
  GRID: 'grid', // 网格布局
}

export const ROW_GUTTER = (8, 12)

export const ALIGN = {
  LEFT: 'left',
  RIGHT: 'right',
}

export const FIELD_MODE = {
  EDIT: 'edit',
  DISABLED: 'disabled',
  READONLY: 'readonly',
  HIDDEN: 'hidden',
}

export const LABEL_COL = {
  span: 6,
  offset: 0,
}

export const WRAPPER_COL = {
  span: 16,
  offset: 0,
}

// 网格布局缺省列数
export const GRID_COL_COUNT = 3

// 网格布局缺省标签列度
export const GRID_LABEL_WIDTH = '60px'

//
export const GRID_FIELD_GUTTER = [0, 0]

export const ControlType = {
  INPUT: 'input',
  TEXTAREA: 'textArea',
  INPUT_NUMBER: 'inputNumber',
  INPUT_NUMBER_RANGE: 'inputNumberRange',
  INPUT_EMAIL: 'inputEmail',
  INPUT_URL: 'inputUrl',
  INPUT_PASSWORD: 'inputPassword',
  RADIO: 'radio',
  SWITCH: 'switch',
  CHECKBOX: 'checkbox',
  SELECT: 'select',
  SELECTBOTH: 'selectboth',
  SELECTALL: 'selectall',
  TREESELECT: 'treeselect',
  DATE_PICKER: 'datePicker',
  TIME_PICKER: 'timePicker',
  DATE_RANGE_PICKER: 'dateRangePicker',
  
}

export const FORMAT = {
  DATE: 'YYYY-MM-DD',
  TIME: 'HH:mm:ss',
}
